Skip to content

Simplify customizing OAuth2AuthorizationRequest #7748

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

jgrandja
Copy link
Contributor

The OAuth2AuthorizationRequestResolver provides the ability to customize the Authorization Request using a delegation-based strategy.

Although this strategy could fulfill most (if not all) use cases, it does require some extra configuration that may not be as convenient compared to directly "hooking" into the OAuth2AuthorizationRequest.Builder for customizations.

This PR addresses this by introducing a Consumer<OAuth2AuthorizationRequest.Builder> in DefaultOAuth2AuthorizationRequestResolver.

Fixes gh-7696

Related #7714

@jgrandja jgrandja requested a review from rwinch December 17, 2019 00:32
@jgrandja jgrandja added in: oauth2 An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose) type: enhancement A general enhancement labels Dec 17, 2019
@jgrandja jgrandja requested a review from jzheaux December 17, 2019 00:33
@jgrandja jgrandja added this to the 5.3.0.M1 milestone Dec 17, 2019
@eleftherias eleftherias modified the milestones: 5.3.0.M1, 5.3.0.RC1 Jan 8, 2020
@jgrandja jgrandja force-pushed the gh-7696-authz-req-customizer branch from 06fcbf8 to 3e85fb8 Compare January 18, 2020 01:33
@eleftherias eleftherias modified the milestones: 5.3.0.RC1, 5.3.0 Feb 5, 2020
@jgrandja jgrandja force-pushed the gh-7696-authz-req-customizer branch from 3e85fb8 to 23ce717 Compare February 19, 2020 11:23
@jgrandja jgrandja self-assigned this Feb 19, 2020
@jgrandja jgrandja merged commit 23ce717 into spring-projects:master Feb 19, 2020
@jgrandja jgrandja deleted the gh-7696-authz-req-customizer branch February 19, 2020 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: oauth2 An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose) type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consider adding switch to enable or disable OIDC nonce
2 participants